﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DispatchAssist.BusinessLogical.Model
{
    public class SMSContactGroup
    {

        /// <summary>
        /// SMSContactGroup 构造函数
        /// </summary>
        public SMSContactGroup()
        { }


        /// <summary>
        /// SMSContactGroup OR映射构造函数
        /// </summary>
        public SMSContactGroup(System.Data.IDataReader dr)
        {
            this.SMSContactGroupID = (Guid)dr["SMSContactGroupID"];
            this.GroupName = Convert.ToString(dr["GroupName"]);
            this.GroupCode = Convert.ToString(dr["GroupCode"]);
            this.LastModifyTime = Convert.ToDateTime(dr["LastModifyTime"]);
            this.DeleteFlag = Convert.ToBoolean(dr["DeleteFlag"]);
        }


        /// <summary>
        /// 
        /// </summary>
        public Guid SMSContactGroupID { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string GroupName { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string GroupCode { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public DateTime LastModifyTime { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public bool DeleteFlag { get; set; }

        public override string ToString()
        {
            return string.Format("[组名称：{0}]", this.GroupName);
        }


    }
}
